<template>

         <div class="nav">
                     <slot name="sidebar"></slot> 
                  <slot name="siteTitle" :childrenName="siteData"></slot>
                  <slot name="houseTitle" :childrenName="houseData"></slot>
                     <slot name="search" :childrenName="weddingData" ></slot> 
                     <slot name="carTitle" :childrenName="carData"></slot>
                     <slot name="selectTitle" :childrenName="selectTitle"></slot>
    </div >
  
</template>
<script>

export default {
    data(){
      return {
          weddingData: ["资深", "总监", "首席"],
         siteData:['热门','风格','色系'],
         houseData:["类型","区域"],
         carData:["品牌筛选","价格筛选"],
         selectTitle:["现场布置","婚礼服务","婚车租赁"]
      }
    }
}
</script>
<style>
@import url("../assets/css/base.css");
@import url("../assets/font/iconfont.css");
.nav .top {
  width: 100%;
  height: 80px;
  background-color: #121212;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

 .nav .top .title {
  padding-left: 60px;
  line-height: 80px;
width: 30%;
}

.nav .top .title li {
  float: left;

  margin-right: 30px;
  width: 80px;
  height: 40px;
  position: relative;
}

 .nav .top .title li a {
  display: block;
  color: #fff;
  font-size: 18px;
  width: 80px;
  height: 40px;
  text-align: center;
  line-height: 40px;
}



 .nav .top .search {
  width: 400px;
  height: 45px;
  margin-right: 40px;
  position: relative;
}

 .nav .top .search input {
  width: 375px;
  height: 45px;
  outline: none;
  background-color: #2c2c2c;
  border: 0;
  border-radius: 25px;
  padding-left: 25px;
}

 .nav .top .search input::-webkit-input-placeholder {
  color: #656565;
  padding-left: 5px;
  font-size: 16px;
  font-family: "微软雅黑";
}

 .nav .top .search::after {
  content: "\e60a";
  font-family: "iconfont";
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  border-radius: 50%;
  background: #434343;
  color: #fff;
  position: absolute;
  right: 27px;
  top: 0;
}
</style>

